﻿using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Journal.Common.Helpers.HtmlControls;
using Journal.Common.Objects.Enums;

namespace Journal.Common.Objects.Column
{
    public class ListImageLinksColumn : BaseColumn
    {
        public IList<ImageLinkColumn> Columns { get; set; }

        public ListImageLinksColumn(IEnumerable<ImageLinkColumn> columns)
        {
            Columns = columns.ToList();
        }

        public override MvcHtmlString Render()
        {
            return TableControl.ListImageLinksColumn(Columns);
        }
    }
}